-
-
Notifications
You must be signed in to change notification settings - Fork 359
Added Verlet integration in Kotlin #535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Really minor stuff.
println("Time for Verlet integration is: $verletTime") | ||
|
||
val stormerVerlet = stormerVerlet(5.0, -10.0, 0.01) | ||
println("Time for Stormer Verlet integration is: " + stormerVerlet.time) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should use string interpolation for all 5 print calls.
|
||
val velocityVerlet = velocityVerlet(5.0, -10.0, 0.01) | ||
println("Time for vel Verlet integration is: " + velocityVerlet.time) | ||
println("Velocity for vel Verlet integration is: " + velocityVerlet.vel) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use the full word "velocity" in both of the above lines?
Thanks! |
No description provided.